Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

RouteCollection no longer requires a ServiceLocator #38

Closed
wants to merge 1 commit into from
Closed

RouteCollection no longer requires a ServiceLocator #38

wants to merge 1 commit into from

Conversation

tyler-sommer
Copy link

Hi there,

@Ocramius requested that Dash be added to tyler-sommer/php-router-benchmark and I've started working on that.

However, to create a RouteCollection I needed a ServiceLocator. This PR makes the ServiceLocator optional for creating a RouteCollection.

I have a strong feeling that this is not actually what I should be doing, any help?

@Ocramius
Copy link
Contributor

Related: veonik/php-router-benchmark#1

@Ocramius
Copy link
Contributor

@tyler-sommer this is actually a requirement, since routes may be dynamic matchers (DB-based, for example)

@tyler-sommer
Copy link
Author

Thanks for the the nudge in the right direction @Ocramius and @DASPRiD!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants